package com.rectcircle.scalatrateset.controller

import com.rectcircle.scalatrateset.auth.AuthenticationSupport

/**
  * @author Rectcircle
  */
class AdminController extends ScalatratestStack with AuthenticationSupport{
	before(){
		requireLogin()
	}
	
	get("/") {
		<h1>"这是一个受保护的控制器动作。如果你能看到它，你就登录了。欢迎你{userOption.get.username}"</h1>
	}
	
}